home *** CD-ROM | disk | FTP | other *** search
- package engine.levelData
- {
- import copy.CopyBank;
- import engine.WorldScene;
- import engine.dynamicObjects.*;
-
- public class Level_06 extends LevelData
- {
-
-
- public function Level_06()
- {
- super();
- _goalParameters = new Array();
- }
-
- override public function buildLevel() : *
- {
- var i:* = undefined;
- var fuelIcon:* = undefined;
- var goalObj:Object = null;
- var missionObj:Object = null;
- var ring:* = undefined;
- super.buildLevel();
- for(i = 0; i < 12; i++)
- {
- ring = new GoalRing();
- ring.x = 800 + i * 200;
- ring.y = 600 + Math.sin(-i) * 50;
- ring.rOffset = i * 0.25;
- ring.SinAmp = 0.08;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- fuelIcon = new FuelIcon();
- fuelIcon.x = 3000;
- fuelIcon.y = 600;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1500;
- fuelIcon.y = 600;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- _missionDescription = CopyBank.Instance.MissionDesc_Rings;
- goalObj = {
- "Type":"Ring",
- "Count":12
- };
- _goalParameters.push(goalObj);
- missionObj = {
- "Description":_missionDescription,
- "BoundsX":_missionBoundsX,
- "BoundsHint":_missionBoundsHint,
- "GoalParamaters":_goalParameters,
- "PrimaryGoalType":"Rings",
- "StartLoc":{
- "x":50,
- "y":850
- }
- };
- WorldScene.Instance.setMissionDetails(missionObj);
- }
- }
- }
-